<template>
  <div id="app">
    <router-view />
    <fixedTool
      v-if="!fixedToolExCludes.includes($route.path)"
      @HandleWorkLog="HandleWorkLog"
    />
    <workLogDialog
      :visible.sync="workLogDialog.visible"
      :row="workLogDialog.row"
    />
  </div>
</template>

<script>
import { mapState } from "vuex";
import fixedTool from "@/views/workbench/components/fixedTool";
import workLogDialog from "@/views/workbench/components/workLogDialog";
export default {
  name: "App",
  components: {
    fixedTool,
    workLogDialog,
  },
  data() {
    return {
      fixedToolExCludes: [
        "/",
        "/login",
        "/kanban",
        "/blowIrriagtionSpinLineDaily",
        "/blowIrriagtionSpinLineMonthly",
        "/injectionWorkshop",
        "/dashboardMgmt/blowIrriagtionSpinLineDaily",
        "/dashboardMgmt/blowIrriagtionSpinLineMonthly",
        "/dashboardMgmt/injectionWorkshop",
      ],
      workLogDialog: {
        visible: false,
        defaultValues: [],
      },
    };
  },

  computed: {
    ...mapState({
      warnDetail: (state) => state.workbench.warnDetail,
    }),
  },

  methods: {
    HandleWorkLog() {
      this.workLogDialog.visible = true;
    },
  },
};
</script>
<style lang="less">
/*#app{*/
/*  overflow: hidden;*/
/*}*/
// .app-wrapper *{
//   /*font-size: 16px!important;*/
// }
.app-main {
  max-height: calc(100% - 84px);
  overflow: auto !important;
  background-color: rgb(242, 244, 246);
  padding: 8px;
  box-sizing: border-box;
  /*position: relative;*/
}
.app-container {
  /*position: relative;*/
  border-radius: 5px;
  background-color: white;
}
.app-container .el-dialog__wrapper {
  background-color: rgba(0, 0, 0, 0.3);
}
.exportMenu {
  height: 100px;
  width: 180px;
  position: fixed;
  border-radius: 5px;
  border: 1px solid #aaa;
  background-color: #fefefe;
  z-index: 9999;
  padding: 0;
  overflow: hidden;
}
.exportMenu__item {
  display: block;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  height: 33px;
  line-height: 33px;
  font-size: 14px;
  color: #606266;
  padding-left: 10px;
}
#exportMenu li > i {
  margin-right: 3px;
}
#exportMenu li:hover {
  background-color: #ed9540;
  color: white;
}
.el-dialog {
  max-width: 100%;
  overflow-y: auto;
  .el-dialog__header {
    border-bottom: 1px solid #eeeeee;
  }
}
.el-dialog .el-dialog__body {
  max-height: calc(100vh - 5vh - 55px - 66px - 130px);
  overflow: auto;
}
.full-screen {
  .el-dialog .el-dialog__body {
    max-height: calc(100vh - 5vh - 55px - 66px - 30px);
    overflow: auto;
  }
}
.el-table tbody > .el-table__row {
  cursor: pointer;
}
.el-message-box__content p {
  word-wrap: break-word;
}

.app-container {
  /*position: relative;*/
  border-radius: 5px;
  background-color: white;
}
.app-container .el-dialog__wrapper {
  background-color: rgba(0, 0, 0, 0.3);
}
.exportMenu {
  height: 100px;
  width: 180px;
  position: fixed;
  border-radius: 5px;
  border: 1px solid #aaa;
  background-color: #fefefe;
  z-index: 9999;
  padding: 0;
  overflow: hidden;
}
.exportMenu__item {
  display: block;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  height: 33px;
  line-height: 33px;
  font-size: 14px;
  color: #606266;
  padding-left: 10px;
}
#exportMenu li > i {
  margin-right: 3px;
}
#exportMenu li:hover {
  background-color: #ed9540;
  color: white;
}
.el-dialog {
  max-width: 100%;
  overflow-y: auto;
  .el-dialog__header {
    border-bottom: 1px solid #eeeeee;
  }
}
.el-table tbody > .el-table__row {
  cursor: pointer;
}
.el-message-box__content p {
  word-wrap: break-word;
}

.el-message-box__message {
  max-height: 300px;
  overflow: auto;
}
.demo-table-expand {
  font-size: 0;
  background-color: rgb(237, 243, 244);
}

.demo-table-expand label {
  min-width: 120px;
  color: #99a9bf;
}

.demo-table-expand .el-form-item {
  margin-right: 0;
  margin-bottom: 0;
  /*width: 50%;*/
}

.vue-treeselect__control {
  height: 32px !important;
}

/*.el-main{*/
/*  min-height: 500px;*/
/*}*/
#app .sidebar-container .nest-menu .el-submenu > .el-submenu__title:hover,
#app .sidebar-container .el-submenu .el-menu-item:hover,
#app .sidebar-container .submenu-title-noDropdown:hover,
#app .sidebar-container .el-submenu__title:hover {
  background-color: rgba(136, 196, 70, 0.1) !important;
}

.el-container {
  height: 100%;
  border-radius: 5px;
  border: 1px solid #dfe6ec;
  aside {
    border-right: 1px solid #dfe6ec;
    min-height: 150px;
    padding: 8px;
    overflow: hidden;
  }
  .el-main {
    padding: 8px;
    padding-left: 12px;
  }
  // .el-form-item {
  //   /*margin-bottom: 10px;*/
  // }
}

.el-dialog__wrapper {
  overflow: hidden;
}
.el-form--inline .el-form-item {
  margin-bottom: 8px;
}
.mb8 {
  width: calc(100% - 10px);
}
.mb8 .el-button {
  margin-bottom: 5px;
}
.el-table .el-checkbox__inner {
  width: 20px;
  height: 20px;
}
.el-table .el-checkbox__input.is-checked .el-checkbox__inner::after {
  width: 4px;
  height: 10px;
  left: 5px;
}
.el-tree-node {
  min-width: 100%;
  padding-right: 5px;
  // width: 100%;
  .el-tooltip {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.el-dialog {
  &.is-fullscreen {
    display: flex;
    flex-direction: column;
    .el-dialog__body {
      flex: 1;
      max-height: 100%;
    }
  }
}
</style>
